home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 102 / CD-ROM 102.iso / aplic / 2sync / 2SyncSetup.exe / halt / scripts / DefineSprite_194 / frame_1 / DoAction.as
Encoding:
Text File  |  2002-03-20  |  918 b   |  33 lines

  1. this._visible = false;
  2. control = {base:this,resize:function(w, h)
  3. {
  4.    var scale = 100 / w * 800;
  5.    this.base.mask.ph._xscale = scale;
  6.    this.base.mask.ph._yscale = scale;
  7.    var newW = w / 100 * scale;
  8.    var newH = h / 100 * scale;
  9.    this.base.mask._xscale = 0.125 * newW;
  10.    this.base.mask._yscale = 0.16666666666666666 * newH;
  11.    this.base.mask.ph._xscale = scale / (this.base.mask._xscale / 100);
  12.    this.base.mask.ph._yscale = scale / (this.base.mask._yscale / 100);
  13.    var x = 400 - this.base._width / 2;
  14.    var y = 300 - this.base._height / 2;
  15.    if(x < 1 or 390 < x)
  16.    {
  17.       x = 10;
  18.    }
  19.    if(y < 10 or 300 < y)
  20.    {
  21.       y = 10;
  22.    }
  23.    this.base._x = x;
  24.    this.base._y = y;
  25.    this.base._visible = true;
  26.    this.base.left = 0;
  27.    this.base.right = 800 - this.base._width;
  28.    this.base.top = 25;
  29.    this.base.bottom = 600;
  30.    call("_level0/fade:change");
  31. }};
  32. stop();
  33.